/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.src.ptit.javatraining.huynh.btvn2;

import java.io.BufferedReader;
import java.io.FileReader;
import java.util.Arrays;

/**
 *
 * @author user
 */
public class Bai8 {
    public static void main(String[] args) {
        String s;
        try{
            FileReader f8 = new FileReader("Bai8.in");
            BufferedReader fin = new BufferedReader(f8);
            s = fin.readLine();
            if(s.length()<1) throw new Exception("Xau rong !");
            while(s.indexOf("  ")!=-1) s = s.replaceAll("  ", " ");
            String s2[] = s.split(" ",20);
            Arrays.sort(s2);
            for(int i=0;i<s2.length;i++) System.out.print(s2[i]+" ");
        } catch(Exception e){
            System.out.println("Error "+e);
        }
    }
    
}
